package yangliu.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import yangliu.dao.YangLiuDao;
import yangliu.entity.BjEntity;
import yangliu.entity.Page;
import yangliu.entity.YangLiuEntity;
import yangliu.service.YangLiuService;

import java.util.List;
@Service("ylservice")
public class YangLiuServiceImpl implements YangLiuService {
    @Autowired
    YangLiuDao yangliuDao;

    public List<YangLiuEntity> queryPage(Page page, String name) {
        return yangliuDao.queryPage(page,name);
    }



    public void save(YangLiuEntity yangliu) {
        yangliuDao.save(yangliu);
    }

    public int queryCount(String name) {
        return yangliuDao.queryCount(name);
    }

    public YangLiuEntity edit(YangLiuEntity yangliu) {
        return  yangliuDao.edit(yangliu);
    }

    public void del(YangLiuEntity yangliu) {
        yangliuDao.del(yangliu);
    }

    public List<BjEntity> bj() {
        return yangliuDao.bj();
    }
}